package edu.ynu.po;
// default package



/**
 * OrderItem entity. @author MyEclipse Persistence Tools
 */

public class OrderItem  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Integer magazineId;
     private Integer orderId;
     private Integer count;
     private double totalPrice;


    // Constructors

    /** default constructor */
    public OrderItem() {
    }

    
    /** full constructor */
    public OrderItem(Integer magazineId, Integer orderId, Integer count, double totalPrice) {
        this.magazineId = magazineId;
        this.orderId = orderId;
        this.count = count;
        this.totalPrice = totalPrice;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMagazineId() {
        return this.magazineId;
    }
    
    public void setMagazineId(Integer magazineId) {
        this.magazineId = magazineId;
    }

    public Integer getOrderId() {
        return this.orderId;
    }
    
    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getCount() {
        return this.count;
    }
    
    public void setCount(Integer count) {
        this.count = count;
    }

    public double getTotalPrice() {
        return this.totalPrice;
    }
    
    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }
   








}